package com.wp.design.structural.command;

import com.google.common.collect.Lists;

import java.util.List;

public class Staff {
	private List<Command> list = Lists.newArrayList();
	public void add(Command command){
		list.add(command);
	}
	public void executeCommands(){
		for (Command item:list){
			item.excute();
		}
	}
}
